Move url_link and utf_string to be more C++-ish.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 6 Feb 2013 06:55:28 +0000 (06:55 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 6 Feb 2013 06:55:28 +0000 (06:55 +0000)
gpsbabel/defs.h

index 3d75d3e7e895ad71eaa7adce81034ad1ed354b14..5883400e7d42c148ded933d74a4753a17e431204 100644 (file)
@@ -262,10 +262,15 @@ typedef enum {
   gc_small
 } geocache_container;
 
-typedef struct {
-  int is_html;
+class utf_string{
+ public:
+  utf_string() :
+    is_html(false),
+    utfstring(NULL)
+  {};
+  bool is_html;
   char* utfstring;
-} utf_string;
+};
 
 typedef struct {
   int id; /* The decimal cache number */
@@ -346,11 +351,17 @@ fs_xml* fs_xml_alloc(long type);
 /*
  * Structures and functions for multiple URLs per waypoint.
  */
-typedef struct url_link {
+class url_link {
+ public: 
+    url_link() :
+    url_next(NULL),
+    url(NULL),
+    url_link_text(NULL)
+     {} ;
   struct url_link* url_next;
   char* url;
   char* url_link_text;
-} url_link;
+};
 
 /*
  * Misc bitfields inside struct waypoint;